package com.lxt.blog.pojo;

/*
 *文章类
 * 文章id
 * 文章作者
 * 文章内容
 * 文章时间
 * 是否公开
 */
public class Article {
    private int id;
    private String userid;
    private String caption;
    private String article;
    private String time;
    private String publice;

    public Article(){}
    public Article(int id, String userid, String caption, String article, String time, String publice) {
        this.id = id;
        this.userid = userid;
        this.caption = caption;
        this.article = article;
        this.time = time;
        this.publice = publice;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getUserid() {
        return userid;
    }

    public void setUserid(String userid) {
        this.userid = userid;
    }

    public String getCaption() {
        return caption;
    }

    public void setCaption(String caption) {
        this.caption = caption;
    }

    public String getArticle() {
        return article;
    }

    public void setArticle(String article) {
        this.article = article;
    }

    public String getTime() {
        return time;
    }

    public void setTime(String time) {
        this.time = time;
    }

    public String getPublice() {
        return publice;
    }

    public void setPublice(String publice) {
        this.publice = publice;
    }

    @Override
    public String toString() {
        return "Article{" +
                "id=" + id +
                ", userid='" + userid + '\'' +
                ", caption='" + caption + '\'' +
                ", article='" + article + '\'' +
                ", time='" + time + '\'' +
                ", publice='" + publice + '\'' +
                '}';
    }
}
